<!DOCTYPE html>
<html class="iframe-h">

	<head>
		<meta charset="UTF-8">
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>网站后台管理模版</title>
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/admini/layui/css/layui.css" />
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/admini/css/admin.css" />
	</head>

	<body>
		<div class="wrap-container clearfix">
				<div class="column-content-detail">
					<form class="layui-form" action="{:url()}" method="get">
						<div class="layui-form-item">
							<div class="layui-inline tool-btn">
								<a class="layui-btn layui-btn-error page-btns confirm" title="确认删除？" href="{:url('dell',['table'=>'gw_message'])}"><i class="layui-icon">&#xe640;</i> 删除</a>
							</div>
							<div class="layui-inline">
								<input type="text" name="keyword" value="{$keyword}"  placeholder="请输入标题" autocomplete="off" class="layui-input">
							</div>
							<button class="layui-btn layui-btn-normal" lay-submit="search">搜索</button>
						</div>
					</form>
					<div class="layui-form" id="table-list">
						<table class="layui-table" lay-even lay-skin="nob">
							<colgroup>
								<col width="50">
								<col  width="70">
								<col  width="70">
								<col  width="70">
								<col  width="200">
								<col class="hidden-xs" width="50">
								<col class="hidden-xs" width="50">
								<col width="120">
							</colgroup>
							<thead>
								<tr>
									<th><input type="checkbox" lay-skin="primary" lay-filter="allChoose"></th>
									<th>姓名</th>
									<th>电话</th>
									<th>科目</th>
									<th>备注</th>
									<th class="hidden-xs">状态</th>
									<th class="hidden-xs">时间</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
								<form id="listForm">
								{volist name="data" id="vo"}
								<tr>
									<td><input type="checkbox" name="ids[]" value="{$vo.id}" class="layui-checkbox checkbox-ids" lay-skin="primary"></td>
									<td>{$vo.title}</td>
									<td>{$vo.tel}</td>
									<td>{$vo.km|km}</td>
									<td>{$vo.content}</td>
									<td>
										<input type="checkbox" data-href="{:url('status',['table'=>'gw_message','id'=>$vo.id])}" {if $vo.status==1}checked{/if} value="{$vo.status}" lay-skin="switch" lay-filter="switchStatus" lay-text="审核|未审">
									</td>
									<td class="hidden-xs">{$vo.add_time|mb_substr=0,10,'UTF-8'}</td>
									<td>
										<div class="layui-inline">
											<a class="layui-btn layui-btn-small layui-btn-error ajax-do confirm" title="确认删除？" href="{:url('dell',['id'=>$vo.id,'table'=>'gw_message'])}"><i class="layui-icon">&#xe640;</i> 删除</a>
										</div>
									</td>
								</tr>
								{/volist}
								</form>
							</tbody>
						</table>
						<div class="page-wrap">
							<ul class="pagination">
								{$data->render()}
							</ul>
						</div>
					</div>
				</div>
		</div>
		<script src="__PUBLIC__/admini/layui/layui.js" type="text/javascript" charset="utf-8"></script>
		<script src="__PUBLIC__/admini/js/common.js" type="text/javascript" charset="utf-8"></script>
	</body>

</html>